 package server.maps;

 import client.MapleCharacter;
 import client.MapleClient;
 import java.awt.Point;
 import java.util.concurrent.ScheduledFuture;
 import tools.packet.BuffPacket;









 public class MapleArrowsTurret
   extends AnimatedMapleMapObject
 {
   private final int ownerid;
   private final int skillLevel;
   private final int ownerLevel;
   private final int skillId;
   private final byte side;
   private final MapleMap map;
/*  26 */   private ScheduledFuture<?> schedule = null;
/*  27 */   private ScheduledFuture<?> poisonSchedule = null;










   public MapleArrowsTurret(MapleCharacter owner, byte side, Point pos) {
/*  39 */     this.map = owner.getMap();
/*  40 */     this.ownerid = owner.getId();
/*  41 */     this.ownerLevel = owner.getLevel();
/*  42 */     this.skillId = 3111013;
/*  43 */     this.skillLevel = owner.getSkillLevel(this.skillId);
/*  44 */     this.side = side;
/*  45 */     setPosition(pos);
   }

   public MapleCharacter getOwner() {
/*  49 */     return this.map.getCharacterById(this.ownerid);
   }

   public int getOwnerId() {
/*  53 */     return this.ownerid;
   }

   public int getOwnerLevel() {
/*  57 */     return this.ownerLevel;
   }

   public int getSkillId() {
/*  61 */     return this.skillId;
   }

   public int getSide() {
/*  65 */     return this.side;
   }

   public MapleMap getMap() {
/*  69 */     return this.map;
   }

   public int getSkillLevel() {
/*  73 */     return this.skillLevel;
   }

   public ScheduledFuture<?> getSchedule() {
/*  77 */     return this.schedule;
   }

   public void setSchedule(ScheduledFuture<?> s) {
/*  81 */     this.schedule = s;
   }

   public ScheduledFuture<?> getPoisonSchedule() {
/*  85 */     return this.poisonSchedule;
   }

   public void setPoisonSchedule(ScheduledFuture<?> s) {
/*  89 */     this.poisonSchedule = s;
   }


   public MapleMapObjectType getType() {
/*  94 */     return MapleMapObjectType.ARROWS_TURRET;
   }


   public void sendSpawnData(MapleClient client) {
/*  99 */     client.announce(BuffPacket.isArrowsTurretAction(this, false));
   }


   public void sendDestroyData(MapleClient client) {
/* 104 */     client.announce(BuffPacket.cancelArrowsTurret(this));
   }
 }


/* Location:              C:\PGX\Server.jar!\server\maps\MapleArrowsTurret.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */